<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
function marge_pdf($path,$files, $filename='') 
{
	//include 'PDFMerger/PDFMerger.php';
	require_once("PDFMerger/PDFMerger.php");
	$pdf = new PDFMerger;

	for($fNo=0;$fNo<count($files);$fNo++)
	{
		$pdf->addPDF($path.$files[$fNo], 'all');
	}
	$pdf->merge('file', $filename);
	// REPLACE 'file' WITH 'browser', 'download', 'string', or 'file' for output options
}
?>